package com.zeng.jiudian.mapper;

import com.zeng.jiudian.bean.ProductModel;
import com.zeng.jiudian.bean.ProductModelExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper
{
    long countByExample(ProductModelExample example);

    int deleteByExample(ProductModelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductModel record);

    int insertSelective(ProductModel record);

    List<ProductModel> selectByExample(ProductModelExample example);

    //创1
    public List<ProductModel> selectAll(ProductModel productModel);

    //创2
    public int selectCount(ProductModel productModel);

    //创3
    public List<ProductModel> selectByProductTypeId(Integer productTypeId);

    ProductModel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductModel record, @Param("example") ProductModelExample example);

    int updateByExample(@Param("record") ProductModel record, @Param("example") ProductModelExample example);

    int updateByPrimaryKeySelective(ProductModel record);

    int updateByPrimaryKey(ProductModel record);
}